﻿@model DotNet.Model.MyEntity.Base_Items

  <div class="pageFormContent" layouth="60">
    <table width="95%" class="tab01 tabNo">
        <tr>
            <td class="td1" style="width:25%;">
                编号：
            </td>
            <td>
                @Html.Raw(Model == null || Model.Id == null ? "" : "<input type=\"hidden\" value=\"" + Model.Id + "\" id=\"Id\" name=\"Id\" />")
                @Html.TextBoxFor(m => m.Code, new Dictionary<string, object> { {"class","input02"} })
                @Html.ValidationMessageFor(m => m.Code)
            </td>
        </tr>
        <tr>
            <td class="td1">
                名 称：
            </td>
            <td>
                @Html.TextBoxFor(m => m.FullName, new Dictionary<string, object> { {"class","input02"} })
                @Html.ValidationMessageFor(m => m.FullName)
            </td>
        </tr>
        <tr>
            <td class="td1">
                目标表：
            </td>
            <td>
                <input type="text" class="input02" name="TargetTable" id="TargetTable" @Html.Raw(Model == null || Model.TargetTable == null ? "value=\"Items_\"" : "value=\"" + Model.TargetTable + "\"") ) />
            </td>
        </tr>
        <tr>
            <td class="td1">
                编号字段：
            </td>
            <td>
                @Html.TextBoxFor(m => m.UseItemCode,new Dictionary<string,object>{ {"class","input02"} })
            </td>
        </tr>
        <tr>
            <td class="td1">
                名称字段：
            </td>
            <td>
                @Html.TextBoxFor(m => m.UseItemName, new Dictionary<string, object> { {"class","input02"} })
            </td>
        </tr>
        <tr>
            <td class="td1">
                值字段：
            </td>
            <td>
                @Html.TextBoxFor(m => m.UseItemValue, new Dictionary<string, object> { {"class","input02"} })
            </td>
        </tr>
        <tr>
            <td class="td1"></td>
            <td>
                <input type="checkbox" name="IsTree" id="IsTree" value="1" @Html.Raw(Model == null || Model.IsTree == null ? "" : (Model.IsTree == 1 ? "checked='checked'" : "")) />树形
                <input type="checkbox" name="Enabled" id="Enabled" value="1" @Html.Raw(Model == null || Model.Enabled == null ? "checked='checked'" : (Model.Enabled == 1 ? "checked='checked'" : "")) />有效
                <input type="checkbox" name="IsCreateTable" id="IsCreateTable" value="1" @Html.Raw(Model == null ? "checked='checked'" : "style=\"display:none;\"") ) />@Html.Raw(Model == null ? "创建选项表" : "")
            </td>
        </tr>
        <tr>
            <td class="td1">
                    描 述：
            </td>
            <td>
                @Html.TextAreaFor(m => m.Description, new Dictionary<string, object> { {"class","input05"} })
            </td>
        </tr>
    </table>
    </div>
